# 所有音乐文件
import pygame

pygame.mixer.init()


# 导入音乐函数
def load_sound(fileName: str, set_volume: float) -> pygame.mixer.Sound:
    res = pygame.mixer.Sound(fileName)
    res.set_volume(set_volume)
    return res


pygame.mixer.music.load(r'sound/game.mp3')
pygame.mixer.music.set_volume(0.5)

supply_sound = load_sound(r'sound/supply.wav', 0.3)

bullet_sound = load_sound(r'sound/bullet.wav', 0.3)

bomb_sound = load_sound(r'sound/bomb.wav', 0.3)

record_break_sound = load_sound(r'sound/record_breaking.wav', 0.5)

game_over_sound = load_sound(r'sound/game_over.wav', 0.5)

fish_kill_sound = load_sound(r'sound/fish_kill.wav', 0.5)

big_fish_kill_sound = load_sound(r'sound/big_fish_kill.wav', 0.5)
